﻿@{
    ViewBag.Title = "Thêm mới chỉ tiêu";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    List<SelectListItem> lstNam = new List<SelectListItem>();
    lstNam.Add(new SelectListItem
    {
        Value = "-1",
        Text = "-- Chọn năm --"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2012",
        Text = "2012"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2013",
        Text = "2013"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2014",
        Text = "2014"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2015",
        Text = "2015"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2016",
        Text = "2016"
    });
    lstNam.Add(new SelectListItem
    {
        Value = "2017",
        Text = "2017"
    });


    List<SelectListItem> lstDaotao = new List<SelectListItem>();
    lstDaotao.Add(new SelectListItem
    {
        Value = "-1",
        Text = "-- Chọn nhóm chỉ tiêu --"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "0",
        Text = "Đào tạo"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "1",
        Text = "Nghiên cứu khoa học"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "2",
        Text = "Tuyển sinh"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "3",
        Text = "Hội nhập quốc tế"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "4",
        Text = "Tổ chức các bộ"
    });
    lstDaotao.Add(new SelectListItem
    {
        Value = "5",
        Text = "Thanh tra pháp chế"
    });

}
<link href="~/Content/standard_form_nhaplieu.css" rel="stylesheet" />
<link href="@Url.Content("~/Content/jquery-ui.1.10.2.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery.maskedinput.js")"></script>
<style>
    tbdata {
        table-layout: fixed;
        word-wrap: break-word;
        font-size: small;
    }

    .ct {
        text-align: center;
    }

    .e-input3 {
        background-color: #fae8e8;
        border: 1px solid #ddd;
        text-align: left;
        border-radius: 3px;
        padding: 5px;
        height: 26px;
        font-family: "Open Sans", arial !important;
        box-shadow: 0 1px 1px rgba(50,50,50,0.1);
    }

    .e-input1 {
        background-color: #ddd;
        border: 1px solid #ddd;
        text-align: left;
        border-radius: 3px;
        padding: 5px;
        height: 26px;
        font-family: "Open Sans", arial !important;
        box-shadow: 0 1px 1px rgba(50,50,50,0.1);
    }

    .e-input2 {
        border: 1px solid #ddd;
        background: #bee6ff;
        text-align: left;
        border-radius: 3px;
        padding: 5px;
        height: 26px;
        font-family: "Open Sans", arial !important;
        box-shadow: 0 1px 1px rgba(50,50,50,0.1);
    }
</style>
<div class="page-bar">
    <ul class="page-breadcrumb" style="padding: 4px;">
        <li>
            <i class="fa fa-home"></i>
            <a href="#">Cập nhật giá trị chỉ tiêu</a>
        </li>
    </ul>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("Năm kế hoạch", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                @Html.DropDownList("Namlapbc", lstNam, new { id = "Namlapbc", style = "margin:0px;", @class = "form-control input-sm" })
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("Danh sách đơn vị", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <select id="DSDonvi" style="margin: 0px;" class="form-control input-sm">
                    <option value="-1">[--Đơn vị--]</option>
                </select>
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("DS chỉ tiêu cấp 1", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <select id="DSChitieucap1" style="margin: 0px;" class="form-control input-sm">
                    <option value="-1">[--Chỉ tiêu cấp 1--]</option>
                </select>
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("DS chỉ tiêu cấp 2", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <select id="DSChitieucap2" style="margin: 0px;" class="form-control input-sm">
                    <option value="-1">[--Chỉ tiêu cấp 2--]</option>
                </select>
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("DS chỉ tiêu cấp 3", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <select id="DSChitieucap3" style="margin: 0px;" class="form-control input-sm">
                    <option value="-1">[--Chỉ tiêu cấp 3--]</option>
                </select>
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("Ban phụ trách", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <select id="DsBan" style="margin: 0px;" class="form-control input-sm">
                    <option value="-1">[--Ban/Đơn vị--]</option>
                </select>
            </div>
        </div>

    </div>
</div>
<div class="row margin-bottom-20">
    <div class="col-md-5">
        <div class="row" style="margin-top:5px;">
            @Html.Label("Giá trị", new { @class = "col-md-5", id = "lb1" })
            <div class="col-md-7">
                <input type="text" id="Giatri" style="margin: 0px;" class="form-control input-sm" />
            </div>
        </div>

    </div>
</div>
<div class="row">
    <center>
        <button type="button" id="Update" class="btn btn-success" >Cập nhật giá trị</button>
    </center>
</div>
<script>
    @functions{
           public string GetAntiForgeryToken()
           {
               string cookieToken, formToken;
               AntiForgery.GetTokens(null, out cookieToken, out formToken);
               return cookieToken + "," + formToken;
           }
       }
</script>
<script src="@Url.Content("~/Scripts/DHQG/AddChitieu.js")" type="text/javascript"></script>
<script>
    $(function () {
        var initData = {
            VerificationToken: "@GetAntiForgeryToken()",
            GetallChitieu: "@Url.Action("GetallChitieu", "Kehoachnam")",
            GetallNamkehoach: "@Url.Action("GetallNamkehoach", "Kehoachnam")",
            GetallChitieubynamchitieu: "@Url.Action("GetallChitieubynamchitieu", "Kehoachnam")",
            GetDonViByNhom: "@Url.Action("GetDonViByNhom", "Kehoachnam")",
            GetKehoachbyNamkehoach: "@Url.Action("GetKehoachbyNamkehoach", "Kehoachnam")",
            Getallnhomdonvi: "@Url.Action("Getallnhomdonvi", "Kehoachnam")",
            Getallstatus: "@Url.Action("Getallstatus", "Kehoachnam")",
            GetkehoachbyOption: "@Url.Action("GetkehoachbyOption", "Kehoachnam")",
            AddChitieubyOption: "@Url.Action("AddChitieubyOption", "Kehoachnam")",
            GetDonViByNhom: "@Url.Action("GetDonViByNhom", "Kehoachnam")",
        };
        AddChitieu.init(initData);
    });
</script>
